package com.daniel.gof.builder;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/5/28 18:12
 */
public class IntelComputerBuilder implements Builder2 {
	private Computer computer;

	public IntelComputerBuilder() {
		computer = new Computer();
	}

	@Override
	public Builder2 addCpu(String msg) {
		computer.setCpu(msg);
		return this;
	}

	@Override
	public Builder2 addMainBoard(String msg) {
		computer.setMainBoard(msg);
		return this;
	}

	@Override
	public Builder2 addRam(String msg) {
		computer.setRam(msg);
		return this;
	}

	@Override
	public Computer getComputer() {
		return computer;
	}
}
